package me.zhengjie.business.service;

import me.zhengjie.business.domain.Zhsq;
import me.zhengjie.business.service.dto.ZhsqDto;
import me.zhengjie.business.service.dto.ZhsqQueryCriteria;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import javax.transaction.Transactional;

/**
 * @author lyl
 * @since 2023/10/19
 * @description 居家照护
 */
public interface ZhsqHomeService {

    /**
     * 查询数据分页
     * @param criteria 条件
     * @param pageable 分页参数
     * @return Map<String,Object>
     */
    Page<Zhsq> queryAll(ZhsqQueryCriteria criteria, Pageable pageable);

    /**
     * 居家照护新增
     * @param resources
     * @param ids
     * @return
     */
    ZhsqDto createZhsqHome(Zhsq resources , String ids);

    @Transactional
    ZhsqDto updateZhsq(Zhsq resources,String ids);

    /**
     * 创建
     * @param resources /
     * @return ZhsqDto
     */
    ZhsqDto submitZhsqHome(Zhsq resources, String ids);
}
